package com.qianji.common.constant;

import lombok.Getter;

/**
 * @author liang zai
 * @date 2022/1/27 11:37
 * @description
 */
public class WareConstant {
    public enum Status{
        CREATE(0,"新建"),ASSIGNED(1,"已分配"),
        PURCHASE(2,"已领取"),STOCKS(3,"已完成"),FAILURE(4,"有异常");
        private int code;
        private String msg;
        Status(int code,String msg){
            this.code=code;
            this.msg=msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
    public enum StatusPurchase{
        CREATE(0,"新建"),ASSIGNED(1,"已分配"),
        PURCHASE(2,"正在采购"),STOCKS(3,"已完成"),FAILURE(4,"采购失败");
        private int code;
        private String msg;
        StatusPurchase(int code,String msg){
            this.code=code;
            this.msg=msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
    @Getter
    public enum StockStatus {
        LOCKED(1, "已锁定"),

        UNLOCKED(2, "已解锁"),

        DEDUCTION(3, "扣减");


        StockStatus (int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        private final int code;
        private final String msg;
    }
}
